package cn.ncupyh.Extends;

public class Manage extends Work{
    //经理
    //成员变量:工号，姓名，工资，管理奖金
    // 成员方法:工作(管理其他人)，吃饭(吃米饭)
    private double bonus;

    public Manage(String ID,String name,double salary) {
        super(ID, name, salary);
        this.bonus = bonus;
    }

    public Manage(double bonus) {
        this.bonus = bonus;
    }
    public static void ManageWork(){
        System.out.println("经理需要管理其他人!");
    }

    @Override
    public String toString() {
        return "Manage{" +
                "ID='" + ID + '\'' +
                ", name='" + name + '\'' +
                ", salary=" + salary +
                ", bonus='" + bonus +
                '}';
    }
}
